package com.fita.scheduler.scheduler;

import com.demo2do.core.utils.Alias;
import com.fita.scheduler.service.ExchangeRateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: 11200
 * @date: 2019/8/1
 */
@Component("exchangeRateScheduler")
public class ExchangeRateScheduler {

    @Autowired
    private ExchangeRateService exchangeRateService;

    /**
     * 同步汇率
     */
    public void syncExchangeRate(){

        exchangeRateService.syncExchangeRate();

    }

}
